﻿@model AutomatedTestDataManagement.Models.TestScenario

@{
    ViewBag.Title = "Create";
}

<h2>Create Test Scenario</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>TestScenario</legend>


        <div class="editor-label">
            @Html.LabelFor(model => model.ScenarioName, "Scenario Name")
            @if (ViewBag.SuiteID != null)
            {
                <input type="hidden" value="@ViewBag.SuiteID" name="SuiteID" id="SuiteID" />
            }
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ScenarioName)
            @Html.ValidationMessageFor(model => model.ScenarioName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ScenarioDescription, "Scenario Description")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ScenarioDescription)
            @Html.ValidationMessageFor(model => model.ScenarioDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TFSID, "Item Tracking ID")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TFSID)
            @Html.ValidationMessageFor(model => model.TFSID)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @if (ViewBag.SuiteID != null)
    {
        @Html.ActionLink("Return to Test Suite", "Edit", new { id = ViewBag.SuiteID }, null) @Html.Encode(" | ")      
    }
    
    @Html.Partial("_TestSuiteNav")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
